package com.it.test;

import com.it.bean.Student;
import com.it.service.TestService;
import com.it.test.base.BaseTest;
import org.junit.jupiter.api.Test;

import java.util.List;

public class SpringTest extends BaseTest {

    @Test
    public void test1() {
        TestService service = applicationContext.getBean(TestService.class);
        List<Student> students = service.queryAll();
        students.forEach(System.out::println);
    }

    @Test
    public void test2() {
        TestService service = applicationContext.getBean(TestService.class);
        service.insertBatchStudent(System.currentTimeMillis() % 3 == 0);
    }

}
